from time import sleep
from unittest import TestCase

from selenium import webdriver

from po_study.po.BaiduHomePage import BaiduHomePage


class TestBaidu(TestCase):
    def test_baidu_home(self):
        driver=webdriver.Chrome()
        baidu=BaiduHomePage(driver)
        baidu.open('http://www.baidu.com')
        baidu.input_search_text()
        baidu.click_search_button()
        sleep(5)
